home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / Zoners Half-Life Tools / hlcsg / wadpath.h < prev   
C/C++ Source or Header  |  2002-12-09  |  847b  |  24 lines

  1. // AJM: added file in
  2. #ifndef WADPATH_H__
  3. #define WADPATH_H__
  4.  
  5. #define MAX_WADPATHS 128    // arbitrary
  6.  
  7. typedef struct    
  8. {
  9.     char            path[_MAX_PATH];
  10.     bool            usedbymap;        // does this map requrie this wad to be included in the bsp?
  11.     int             usedtextures;         // number of textures in this wad the map actually uses
  12. } wadpath_t;//!!! the above two are VERY DIFFERENT. ie (usedtextures == 0) != (usedbymap == false)
  13.  
  14. extern wadpath_t*  g_pWadPaths[MAX_WADPATHS];
  15. extern int         g_iNumWadPaths;    
  16.  
  17.  
  18. extern void        PushWadPath(const char* const path, bool inuse);
  19. extern bool        IsUsedWadPath(const char* const path);
  20. extern bool        IsListedWadPath(const char* const path);
  21. extern void        FreeWadPaths();
  22. extern void        GetUsedWads();
  23.  
  24. #endif // WADPATH_H__